#include "userTask.h"
#include "threadPool.h"
typedef struct train_s{
    int dataLength;
    char buf[1000];
}train_t;
int tcpInit(char *ip, char *port, int *pSockFd);
int epollAdd(int fd, int epfd);
int epollDel(int fd, int epfd);
//int isUsrLegal(const char* name, const char* password);
void *threadFunc(void *parg);
int makeWorker(threadPool_t *pThreadPool);
int handleEvent(int netFd, char* curPath);
int recvn(int netFd, void *p, int n);
int download(char *argv, const char *pwd, int netFd);
int isUsrLegal(const char *usr_name, const char *pwd);
int cd(char *argv,char *pwd,int netFd);
int ls(char *pwd, int netFd);
int rm(char *argv,char *pwd,int netFd);
int pwd(char *pwd, int netFd);
int makedir(char *argv,char *pwd,int netFd);
int sendfile(char *argv,int sockFd);
int upload(char* argv, char* pwd, int netFd);